import req from '@/utils/request'

// 获取项目列表
export function getProjectList(data) {
  return req.post('/api/human/project/page', data)
}

// 获取项目列表
export function getProject(id) {
  return req.get(`/api/human/project/${id}`)
}

// 获取项目列表(批量查询)
export function getProjectQuery(data) {
  return req.post('/api/human/project/query', data)
}

// 新增项目
export function addProject(data) {
  return req.post('/api/human/project', data)
}

// 修改项目
export function editProject(data) {
  return req.put('/api/human/project', data)
}

// 获取项目列表
export function deleteProjectList(data) {
  return req.delete('/api/human/project', { data })
}

// 获取报价单列表
export function getProjectListQuotation(data) {
  return req.get('/api/human/project/quotationGet', data)
}

// 修改报价单信息
export function editProjectListQuotation(data) {
  return req.put('/api/human/project/quotationUpdateByid', data)
}

// 获取商报明细列表
export function getQuotationBusinessByProjectQuotationId(data) {
  return req.get(
    '/api/human/project/quotationBusinessByProjectQuotationId',
    data
  )
}

// 修改商报明细列表
export function editQuotationBusinessByProjectQuotationId(data) {
  return req.put('/api/human/project/quotationBusinessUpdateByid', data)
}

// 获取合同信息
export function contractInforBycustomerBaseId(data) {
  return req.get('/api/human/project/contractInforBycustomerBaseId', data)
}
